package com.systop.asset.entity;

import com.systop.asset.service.Treeable;

import java.util.List;

/**
 * 资产位置对象 location
 * 
 * @author mc
 * @date 2025-06-25
 */
public class Location extends BaseEntity implements Treeable<Location>
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 上级位置ID（0为根节点） */
    private Long parentId;

    /** 位置名称 */
    private String locationName;


    /**构造子节点**/
    private List<Location> children;

    public List<Location> getChildren() {
        return children;
    }

    public void setChildren(List<Location> children) {
        this.children = children;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setLocationName(String locationName) 
    {
        this.locationName = locationName;
    }

    public String getLocationName() 
    {
        return locationName;
    }


}
